From 7ebcb094f9f19f8230ac0d72c4b9c53d55ebb51b Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 21 Oct 2005 18:19:38 +0100 Subject: [PATCH] Tweak to pygrub build config detection. Signed-off-by: Jeremy Katz --- tools/pygrub/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pygrub/setup.py b/tools/pygrub/setup.py index 43e46762a8..5e0937bbad 100644 --- a/tools/pygrub/setup.py +++ b/tools/pygrub/setup.py @@ -13,7 +13,7 @@ if os.path.exists("/usr/include/ext2fs/ext2_fs.h"): cc = new_compiler() cc.add_library("ext2fs") try: - if cc.has_function("ext2fs_open2"): + if hasattr(cc, "has_function") and cc.has_function("ext2fs_open2"): ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) ) else: sys.stderr.write("WARNING: older version of e2fsprogs installed, not building full\n") -- 2.30.2